/**
 * Description:
 * Class Name:Teacher
 * Date:2022/5/2 18:40
 *
 * @author LTisme
 * @version JAVA17
 */
package 疯狂Java讲义.第15章_输入输出._15_8_Java9改进的对象序列化._15_8_3_对象引用的序列化;

import 疯狂Java讲义.第15章_输入输出._15_8_Java9改进的对象序列化._15_8_2_使用对象流实现序列化.Person;

import java.io.Serializable;

public class Teacher implements Serializable {
    private String name;
    private Person student;
    public Teacher(String name, Person student){
        this.name = name;
        this.student = student;
    }

    public void setName(String name) {
        this.name = name;
    }

    public void setStudent(Person student) {
        this.student = student;
    }

    public String getName() {
        return name;
    }

    public Person getStudent() {
        return student;
    }
}
